<template>
  <div>
    <el-dialog :close-on-click-modal="false" :title="text" style="text-align: left" :visible.sync="popup" v-if="popup" width="30%">
      <div class="form-layer" v-loading="loading">
        <el-form label-width="120px" class="demo-ruleForm">
          <a href="javascript:;" @click="ceshi()">测试</a>
        </el-form>
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button size="small" @click="popup = false">关 闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
  import publicData from "@/assets/mixins/publicData";
  export default {
    name: "registered-page",
    mixins:[ publicData ],
    components: {},
    data(){
      return{
        detailsData: ''
      };
    },
    methods:{
      openDialog(name) {
        this.loading = true;
        this.text = name;
        this.popup = true;
      },
      ceshi(){
        this.$emit('submit', '哈哈哈')
      }

    },
    watch:{
      "popup"(){
        if(this.popup){
          console.log('关闭')
        }
      }
    }
  }
</script>

<style lang="scss" scoped>
.form-layer{
  width: 100%;
  .file-layer{
    width: 100%;
    div{
      width: 33.33%;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      float: left;
      padding: 2px;
      box-sizing: border-box;
      img{
        width: 100%;
        max-width: 96px;
        height: 96px;
        border-radius: 4px;
      }
    }
  }
}
</style>
<style scoped>
/deep/.el-dialog{
  min-width: 550px;
}
/deep/.el-dialog__body{
  padding: 10px;
}
/deep/.el-form-item{
  margin-bottom: 0;
}
</style>